#include<bits/stdc++.h>
#define N 100010
using namespace std;
int n;
int a[N],s[N];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    int cnt=0;
    for(int i=1;i<=n;i++){
        cin>>a[i];
        s[i]=1;
    }
    for(int i=1;i<=n;i++){
        for(int j=1;j<=n;j++){
            if(a[i]>a[j]&&i!=j&&a[j]!=0&&s[i]==1){
                a[j]=0;
                s[i]--;
                cnt++;
            }
        }
    }
    cout<<n-cnt;
    return 0;
}
